<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
        <div class="row text-center">
            <h3>{$row.name|htmlentities}</h3>
         <!--    <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-name" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}" disabled>
            </div> -->
        </div>
    {if empty($list)}
        <div class="row text-center "><h4 style="color:red;font-weight: 700;">暂无审核项</h4></div>

    {else/}
        {volist name="list" id="vo" }
            <div class="form-group">
                <div class="row">
                    <label class="control-label col-xs-12 col-sm-2">{if $vo.item_required == 1}<span style="color: red;">*</span>{/if}{$vo.item_label}:</label>
                    <div class="col-xs-12 col-sm-4">
                        {switch name="vo.item_type" }
                            {case value="string"}
                                <input class="form-control"  type="text"   value="{:$row[$vo['item_id']]=='-100'?'待定':$row[$vo['item_id']]}" readonly >
                            {/case}
                            {case value="price"}
                                <input class="form-control"  type="text"  value="{:$row[$vo['item_id']]==-100?'待定':$row[$vo['item_id']]}" readonly >
                            {/case}
                            {case value="datetime|date"}
                                <input class="form-control"  type="text"  value="{$row[$vo['item_id'].'_desc']}" readonly >
                            {/case}
                            {case value="select|selects" }
                                {if isset($vo['item_rule']['is_relation']) && $vo['item_rule']['is_relation'] == "1" /}
                                <input class="form-control" style="width: 42%" type="text"  value="<?php echo $row[str_replace('id','name',$vo['item_id'])]; ?>" readonly >
                                <input class="form-control" style="width: 42%" type="text"  value="{$row[$vo['item_id'].'_relation']}" readonly >
                                <span style="line-height: 31px;">{$row[$vo['item_id'].'_relation_unit']}</span>
                                {else/}
                                <input class="form-control"  type="text"  value="<?php echo $row[str_replace('id','name',$vo['item_id'])]; ?>" readonly >
                                {/if}
                            {/case}
                            {case value="radio"}
                                <input class="form-control"  type="text" value="{$row[$vo['item_id']]}" readonly  >
                            {/case}
                            {case value="text"}
                                <textarea  class="form-control " rows="{$vo.item_rule.row}" cols="50" readonly>{$row[$vo['item_id']]}</textarea>
                            {/case}
                            {case value="upload"}
                                <ul class="row list-inline plupload-preview" id="p-avatar" data-listidx="0">
                                    {php}
                                    $attachments = explode(',',$row[$vo['item_id']]);
                                    {/php}
                                    {volist name='attachments' id='avo'}
                                    {if $avo}
                                    <li class="">
                                        <a href="{:url('ajax/viewimg',['id'=>$row.id,'selected'=>$avo])}" data-url="{$avo}" target="_blank" class="thumbnail" data-cursor="pointer" style="cursor: pointer;">
                                            <img src="{$avo}" onerror="this.src='/index/ajax/icon?suffix='+'{$avo}'.split('.').pop();this.onerror=null;" class="img-responsive">
                                        </a>
                                    </li>
                                    {/if}
                                    {/volist}
                                </ul>
                            {/case}
                        {/switch}
                    </div>
                    {if $row['tmp_'.$vo.item_id.'_status'] == STATUS_SUBMIT}
                    <div class="col-xs-12 col-sm-4">
                        {switch name="vo.item_type" }
                            {case value="string"}
                            <div class="input-group">
                                <span class="input-group-addon" >修改为</span>
                                <input class="form-control"  type="text"  value="{:$row['tmp_'.$vo.item_id]=='-100'?'待定':$row['tmp_'.$vo.item_id]}"  readonly >
                            </div>
                            {/case}
                            {case value="price"}
                            <div class="input-group">
                                <span class="input-group-addon" >修改为</span>
                                <input class="form-control"  type="text"  value="{:$row['tmp_'.$vo.item_id]==-100?'待定':$row['tmp_'.$vo.item_id]}"  readonly >
                            </div>
                            {/case}
                            {case value="datetime|date"}
                            <div class="input-group">
                                <span class="input-group-addon" >修改为</span>
                                <input class="form-control"  type="text"  value="{$row['tmp_'.$vo.item_id.'_desc']}"  readonly >
                            </div>
                            {/case}
                            {case value="select|selects"}
                             <div class="input-group">
                                <span class="input-group-addon" >修改为</span>
                                {if isset($vo['item_rule']['is_relation']) && $vo['item_rule']['is_relation'] == "1" /}
                                <input class="form-control" style="width: 42%" type="text"  value="<?php echo $row[str_replace('id','name','tmp_'.$vo['item_id'])]; ?>" readonly >
                                <input class="form-control" style="width: 42%" type="text"  value="{$row['tmp_'.$vo['item_id'].'_relation']}" readonly >
                                <span >{$row['tmp_'.$vo['item_id'].'_relation_unit']}</span>
                                {else/}
                                <input class="form-control"  type="text"  value="<?php echo $row[str_replace('id','name','tmp_'.$vo['item_id'])]; ?>" readonly >
                                {/if}
                            </div>
                            {/case}
                            {case value="radio"}
                            <div class="input-group">
                                <span class="input-group-addon" >修改为</span>
                                <input class="form-control"  type="text" value="{$row['tmp_'.$vo['item_id']]}" readonly  >
                            </div>
                            {/case}
                            {case value="text"}
                                <textarea  class="form-control " rows="{$vo.item_rule.row}" cols="50" readonly>{$row['tmp_'.$vo.item_id]}</textarea>
                            {/case}
                            {case value="upload"}

                                <ul class="row list-inline plupload-preview" id="p-avatar" data-listidx="0">
                                    {php}
                                    $attachments = explode(',',$row['tmp_'.$vo['item_id']]);
                                    {/php}
                                    {volist name='attachments' id='avo'}
                                    {if $avo}
                                    <li class="">
                                        <a href="{$avo}" data-url="{$avo}" target="_blank" class="thumbnail" data-cursor="pointer" style="cursor: pointer;">
                                            <img src="{$avo}" onerror="this.src='/index/ajax/icon?suffix='+'{$avo}'.split('.').pop();this.onerror=null;" class="img-responsive">
                                        </a>
                                    </li>
                                    {/if}
                                    {/volist}
                                </ul>
                            {/case}
                        {/switch}
                    </div>
                    <div class="col-xs-12 col-sm-2" >

                    </div>
                    {/if}
                </div>
                {if $row['tmp_'.$vo.item_id.'_status'] == STATUS_SUBMIT}
                <div class="row" >
                    <label class="control-label col-xs-12 col-sm-2"></label>
                    <div class="col-xs-12 col-sm-4">
                        <textarea  class="form-control " rows="2" rows="2" cols="50"  placeholder="请填写修改原因" readonly>{$row['tmp_'.$vo.item_id.'_submit_desc']}</textarea>
                    </div>
                    <!-- <div class="col-xs-12 col-sm-4">
                        <textarea id="{$vo.item_id}_reject_desc" class="form-control " rows="2"  rows="2" cols="50"  placeholder="请填写驳回原因" ></textarea>
                    </div> -->
                    <div class="col-xs-12 col-sm-2" style="padding-top: 10px;">
                        <button type="button"  class="btn btn-info field_detail" data-item_id="{$vo.item_id}">{:__('修改详情')}</button>
                        <button type="button"  class="btn btn-success single_submit" data-item_id="{$vo.item_id}">{:__('通过')}</button>
                       <!--  <button type="button"  class="btn btn-danger single_reject" data-item_id="{$vo.item_id}">{:__('驳回')}</button> -->

                    </div>

                </div>
                {/if}

                <!-- <div class="col-xs-12 col-sm-3">
                    <input id="c-tmp_investment_total" class="form-control" step="0.0001" name="row[tmp_investment_total]" type="number" value="" placeholder="请填写要修改后的内容">
                </div>
                <div class="col-xs-12 col-sm-3">
                    <textarea id="c-tmp_investment_total_submit_desc" class="form-control " rows="2" name="row[tmp_investment_total_submit_desc]" cols="50"  placeholder="请填写修改原因"></textarea>
                </div>
                <div class="col-xs-12 col-sm-1">
                    <button type="submit" class="btn btn-success btn-embossed disabled">{:__('提交')}</button>
                </div> -->
            </div>

        {/volist}
         <div class="form-group layer-footer">
            <label class="control-label col-xs-12 col-sm-2"></label>
            <div class="col-xs-12 col-sm-8">
                <button type="button" class="btn btn-danger btn-rejectmemo">{:__('驳回备注')}</button>
                {if $row.status == 1}
                    <button type="button" class="btn btn-success all_submit">{:__('审核所有')}</button>
                {/if}
            </div>
        </div>
    {/if}

</form>